const pattern1 = /\x00/;
const pattern2 = /\x0C/;
const pattern3 = /\x1F/;
const pattern4 = /\u000C/;
const pattern5 = /\u{C}/u;
const pattern6 = new RegExp("\x0C"); // raw U+000C character in the pattern
const pattern7 = new RegExp("\\x0C"); // \x0C pattern

var regex = /\x1f/
var regex = /\\\x1f\\x1e/
var regex = /\\\x1fFOO\\x00/
var regex = /FOO\\\x1fFOO\\x1f/
var regex = new RegExp('\\x1f\\x1e')
var regex = new RegExp('\\x1fFOO\\x00')
var regex = new RegExp('FOO\\x1fFOO\\x1f')
var regex = RegExp('\\x1f')
var regex = /(?<\u{1d49c}>.)\x1f/
new RegExp("\\u001F", flags)
new RegExp("\\u{1111}*\\x1F", "u")
